import { DataBlocker, DataProxy } from "../../frame/A-LIB/lib.b.data";


class Status {
	/** 棋盘洗牌中 */
	shuffling: boolean;

	/** 设备ID */
	deviceID: string;

	removeTileCount: number;

	/** 游戏是否结束 */
	gameover: boolean;

	guideInited: boolean;
}

const blocker: DataBlocker<Status> = {
	get: {
		guideInited(proxy, value) {
			return value??false;
		}
	}
}

export default function get_proxy_status(name?: string, prefix?: string){
	return DataProxy.initProxy(name??'status', new Status(), false, blocker, prefix??'');
}